12696dadcbd0ed583c054f475417b0c942b06260,enterprise/src/functionaltest/java/org/neo4j/server/rest/HtmlFunctionalTests.java,HtmlFunctionalTests,setupServer,#,55
Before Change
long tank = createAndIndexNode("Tank");
helper.createRelationship("KNOWS", thomasAnderson, trinity);
thomasAndersonLovesTrinity = helper.createRelationship("LOVES", thomasAnderson, trinity);
helper.setRelationshipProperties(thomasAndersonLovesTrinity, Collections.singletonMap("strength", (Object) 100));
helper.createRelationship("KNOWS", thomasAnderson, tank);
After Change
trinity = createAndIndexNode("Trinity");
long tank = createAndIndexNode("Tank");
long knowsRelationshipId = helper.createRelationship( "KNOWS", thomasAnderson, trinity );
thomasAndersonLovesTrinity = helper.createRelationship("LOVES", thomasAnderson, trinity);
helper.setRelationshipProperties( thomasAndersonLovesTrinity, Collections.singletonMap( "strength", (Object) 100 ) );
helper.createRelationship("KNOWS", thomasAnderson, tank);
helper.createRelationship("KNOWS", trinity, tank);
// index a relationship
helper.createRelationshipIndex( "relationships" );
helper.addRelationshipToIndex( "relationships", "key", "value", knowsRelationshipId );
}